package com.chinaunicom.credits.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinaunicom.credits.dao.GiftMapper;
import com.chinaunicom.credits.model.Gift;
import com.chinaunicom.credits.service.IGiftService;

@Service
public class GiftServiceImpl implements IGiftService{

	@Resource
	private GiftMapper dao;
	
	@Override
	public int deleteByPrimaryKey(Short nGiftno) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(nGiftno);
	}

	@Override
	public int insert(Gift record) {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(Gift record) {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public Gift selectByPrimaryKey(Short nGiftno) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(nGiftno);
	}

	@Override
	public int updateByPrimaryKeySelective(Gift record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Gift record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKey(record);
	}

	@Override
	public List<Gift> queryByType(String vGifttype) {
		// TODO Auto-generated method stub
		return dao.queryByType(vGifttype);
	}

	@Override
	public List<Gift> queryAll() {
		// TODO Auto-generated method stub
		return dao.queryAll();
	}

	@Override
	public List<Gift> queryByName(String vGiftname) {
		// TODO Auto-generated method stub
		return dao.queryByName(vGiftname);
	}

	@Override
	public List<String> queryType() {
		// TODO Auto-generated method stub
		return dao.queryType();
	}

}
